#include "../include/sf/sf_types.h"

// size of sector in bytes
#define DRIVE_SECTOR_SIZE 512

// sector hard drive
typedef uint32_t drive_sector_t;

// drive_init
void sf_drive_init();

// read the data to drive
void sf_drive_read();

// write the data to drive
void sf_drive_write();

// need to have blocks
// drive->blocks->nodes->files/directories

// struct block from sf_block.h
// struct file from sf_file.h
// struct node from sf_node.h
// struct drive from sf_drive.h

// it might be possible to skip the nodes implementation just to simplify a little bit
// so we will drive file datadirectly to drive using Block structure
struct sf_drive {
    char *name;                 /* drive name - hd0:1 */
       
    int device_number;          /* master 0  or slave 1 */

    int drive_type;            /* ATA than 1 else 0 */
    drive_sector_t blocks;      /* blocks */
    
};